package com.woniuxy.email.config;

import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author yellow Docter
 * @date 2024-10-23
 * @desc 蜗牛创想：www.woniuxy.com
 */
@Component
public class RabbitMQConfigConfrim {

//    @Bean
//    public Queue fanoutQueue(){
//        return new Queue("confirm.queue");
//    }
//
//    @Bean
//    public Exchange directExchange(){
//        return new DirectExchange("confirm.exchange");
//    }
//
//    /**
//     *  bind(fanoutQueue1)   队列
//     * .to(directExchange)   交换机
//     * .with("")             路由进行绑定
//     *
//     * @param fanoutQueue
//     * @param directExchange
//     * @return
//     */
//    @Bean
//    public Binding binding(Queue fanoutQueue, Exchange directExchange){
//        return BindingBuilder.bind(fanoutQueue).to(directExchange).with("woniuxy.gz").noargs();
//    }

}
